<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: NdefNfcSpRecord Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">NdefNfcSpRecord Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NdefNfcSpRecord" -->
<p>Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according to the specification.  
 <a href="class_ndef_nfc_sp_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for NdefNfcSpRecord:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_ndef_nfc_sp_record.png" usemap="#NdefNfcSpRecord_map" alt=""/>
  <map id="NdefNfcSpRecord_map" name="NdefNfcSpRecord_map">
<area href="class_ndef_nfc_smart_uri_record.html" title="Smart class that uses the smallest possible NDEF record type for storing the requested information - ..." alt="NdefNfcSmartUriRecord" shape="rect" coords="244,56,397,80"/>
<area href="class_ndef_nfc_geo_record.html" title="Store longitude and latitude on a tag, to allow the user to view a map when touching the tag..." alt="NdefNfcGeoRecord" shape="rect" coords="0,112,153,136"/>
<area href="class_ndef_nfc_sms_record.html" title="Convenience class for formatting SMS information into an NDEF record, depending on added info either ..." alt="NdefNfcSmsRecord" shape="rect" coords="163,112,316,136"/>
<area href="class_ndef_nfc_social_record.html" title="Link to one of the supported social networks by simply selecting the network and specifying the usern..." alt="NdefNfcSocialRecord" shape="rect" coords="326,112,479,136"/>
<area href="class_ndef_nfc_store_link_record.html" title="Create an app store link to download the app, either direct or for multiple stores using the nfcinter..." alt="NdefNfcStoreLinkRecord" shape="rect" coords="489,112,642,136"/>
</map>
 </div></div>

<p><a href="class_ndef_nfc_sp_record-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html">NdefNfcActRecord</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The Action record is a Local Type specific to the Smart Poster.  <a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html">NdefNfcSizeRecord</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object that the URI field refers to.  <a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html">NdefNfcTypeRecord</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The Payload of the Type Record is a UTF-8-formatted string that describes a MIME type [RFC 2046] which describes the type of the object that can be reached through the URI.  <a href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><b>NfcAction</b> { <b>DoAction</b> =  0, 
<b>SaveForLater</b>, 
<b>OpenForEditing</b>, 
<b>RFU</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#af03d0f6f7ac7bf7c09efbfa8d4d7a285">NdefNfcSpRecord</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an empty Smart Poster (Sp) record.  <a href="#af03d0f6f7ac7bf7c09efbfa8d4d7a285"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a51f30053a0be2ad9b168a58d1d1f9b67">NdefNfcSpRecord</a> (const QNdefRecord &amp;other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Smart Poster record based on the record passed through the argument.  <a href="#a51f30053a0be2ad9b168a58d1d1f9b67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad502a5c09cd50cfb6288617f53e472da"></a><!-- doxytag: member="NdefNfcSpRecord::setPayload" ref="ad502a5c09cd50cfb6288617f53e472da" args="(const QByteArray &amp;payload)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#ad502a5c09cd50cfb6288617f53e472da">setPayload</a> (const QByteArray &amp;payload)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the payload of the base class to the byte array from the parameter and parses its contents. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a12464950d7a028bf6a906e2a12598673">rawContents</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the contents of the text record as a string. To be used for debug purposes.  <a href="#a12464950d7a028bf6a906e2a12598673"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QUrl&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#ac38f55eae5cfe6f25a8ef06f663517c2">uri</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the URI stored in this Smart Poster, converted to a QUrl for convenience.  <a href="#ac38f55eae5cfe6f25a8ef06f663517c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#af2587902e2c7a802836ed4f54e8f87b9">setUri</a> (const QUrl &amp;uri)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the mandatory URI of the Smart Poster.  <a href="#af2587902e2c7a802836ed4f54e8f87b9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QNdefNfcUriRecord&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#af9487f5c8421ef960bf968d28014eee2">uriRecord</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the URI record stored in this Smart Poster.  <a href="#af9487f5c8421ef960bf968d28014eee2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a188a11148db7221962b1cae38b0bddcd">setUri</a> (const QNdefNfcUriRecord &amp;newUri)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the mandatory URI of the Smart Poster.  <a href="#a188a11148db7221962b1cae38b0bddcd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a3f37323f2725747944882bbe1b6fbe35">addTitle</a> (const QNdefNfcTextRecord &amp;newTitle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an (optional) title to the Smart Poster.  <a href="#a3f37323f2725747944882bbe1b6fbe35"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a0553ad691be3cd4fc8a504388df52ef8">setTitleList</a> (QList&lt; QNdefNfcTextRecord &gt; newTitleList)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set all the titles of the Smart Poster.  <a href="#a0553ad691be3cd4fc8a504388df52ef8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aadca8982f7f3a2af8618dac42fba3c10"></a><!-- doxytag: member="NdefNfcSpRecord::titleCount" ref="aadca8982f7f3a2af8618dac42fba3c10" args="() const " -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#aadca8982f7f3a2af8618dac42fba3c10">titleCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns how many title text records are stored in the Smart Poster. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99a82a0abf2f11f902411a6cc73edaa6"></a><!-- doxytag: member="NdefNfcSpRecord::titles" ref="a99a82a0abf2f11f902411a6cc73edaa6" args="() const " -->
QList&lt; QNdefNfcTextRecord &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a99a82a0abf2f11f902411a6cc73edaa6">titles</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the full list containing all title text records that are stored in the Smart Poster. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QNdefNfcTextRecord&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#af785ae37b3c45b7666899096802525e6">title</a> (const int index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a specific title text record from the list.  <a href="#af785ae37b3c45b7666899096802525e6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3462ff2d61482cb0de93f9b4f30cfb06"></a><!-- doxytag: member="NdefNfcSpRecord::actionInUse" ref="a3462ff2d61482cb0de93f9b4f30cfb06" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a3462ff2d61482cb0de93f9b4f30cfb06">actionInUse</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if the action has been defined for this Smart Poster instance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">NfcAction&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a73d50c70417bf62549e8078af47bdf38">action</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the action defined for this Smart Poster.  <a href="#a73d50c70417bf62549e8078af47bdf38"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a2a240b64df374e41a518ac5b7b38f625">setAction</a> (const NfcAction &amp;action)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the action of the Smart Poster to the specified value.  <a href="#a2a240b64df374e41a518ac5b7b38f625"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65305e3fb21f42410d984b2e6055ffeb"></a><!-- doxytag: member="NdefNfcSpRecord::sizeInUse" ref="a65305e3fb21f42410d984b2e6055ffeb" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a65305e3fb21f42410d984b2e6055ffeb">sizeInUse</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if the size has been defined for this Smart Poster instance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a9c1ea51b4446a461409ed874be293ad9">size</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the size defined for this Smart Poster.  <a href="#a9c1ea51b4446a461409ed874be293ad9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a8b69f976a64c678b153f65196fa3d909">setSize</a> (const quint32 size)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the size of the Smart Poster to the specified value.  <a href="#a8b69f976a64c678b153f65196fa3d909"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e9451247ea2a4fb5096299c2167e5e8"></a><!-- doxytag: member="NdefNfcSpRecord::mimeTypeInUse" ref="a5e9451247ea2a4fb5096299c2167e5e8" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a5e9451247ea2a4fb5096299c2167e5e8">mimeTypeInUse</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if the type has been defined for this Smart Poster instance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a4630690853edf75dfd49752c844d5c89">mimeType</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the type defined for this Smart Poster.  <a href="#a4630690853edf75dfd49752c844d5c89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#ada9950758e8b3147dbfdce3018580f4e">setMimeType</a> (const QString &amp;mimeType)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the type of the Smart Poster to the specified value.  <a href="#ada9950758e8b3147dbfdce3018580f4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae3831762bc44f29d91af269a3a7e3086"></a><!-- doxytag: member="NdefNfcSpRecord::imageInUse" ref="ae3831762bc44f29d91af269a3a7e3086" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#ae3831762bc44f29d91af269a3a7e3086">imageInUse</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns if the Smart Poster contains an image. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_ndef_nfc_mime_image_record.html">NdefNfcMimeImageRecord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a0fe149f01879f5ebe0099536680d7747">image</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the image stored in the Smart Poster.  <a href="#a0fe149f01879f5ebe0099536680d7747"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#a40961e308de55a66b96cfea7b12aa807">setImage</a> (const <a class="el" href="class_ndef_nfc_mime_image_record.html">NdefNfcMimeImageRecord</a> &amp;imageRecord)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an image to the Smart Poster.  <a href="#a40961e308de55a66b96cfea7b12aa807"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ndef_nfc_sp_record.html#abccf808747083503b1eb4865c065d7f3">hasSpData</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if this record contains data that requires a Smart Poster and could not be stored in a simple URI record.  <a href="#abccf808747083503b1eb4865c065d7f3"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according to the specification. </p>
<p>The class is able to handle the mandatory URI, any number of text records (for storing the Smart Poster title in multiple languages), the action, size, type and image.</p>
<p>As only the URI is mandatory, various ...InUse() methods can be queried to see if an optional detail was set in the Smart Poster that was read from a tag.</p>
<p>The action, size and type records used within the Smart Poster are only valid within its context according to the specification. Therefore, classes for those record types are defined within the context of the Smart Poster record class.</p>
<p>Due to the more complex nature of the Smart Poster record, which consists of multiple records, this class parses the payload contents and creates instances of the various record classes found within the Smart Poster. However, any changes to details are instantly commited to the raw payload as well.</p>
<dl class="version"><dt><b>Version:</b></dt><dd>1.1.0 </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af03d0f6f7ac7bf7c09efbfa8d4d7a285"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcSpRecord" ref="af03d0f6f7ac7bf7c09efbfa8d4d7a285" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefNfcSpRecord::NdefNfcSpRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create an empty Smart Poster (Sp) record. </p>
<p>Note that in order to write a Smart Poster to a tag, you have to at least add the URL. An empty Smart Poster record is not valid according to the specs. </p>

</div>
</div>
<a class="anchor" id="a51f30053a0be2ad9b168a58d1d1f9b67"></a><!-- doxytag: member="NdefNfcSpRecord::NdefNfcSpRecord" ref="a51f30053a0be2ad9b168a58d1d1f9b67" args="(const QNdefRecord &amp;other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefNfcSpRecord::NdefNfcSpRecord </td>
          <td>(</td>
          <td class="paramtype">const QNdefRecord &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a Smart Poster record based on the record passed through the argument. </p>
<p>Internalizes and parses the payload of the original record. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a73d50c70417bf62549e8078af47bdf38"></a><!-- doxytag: member="NdefNfcSpRecord::action" ref="a73d50c70417bf62549e8078af47bdf38" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">NdefNfcSpRecord::NfcAction NdefNfcSpRecord::action </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the action defined for this Smart Poster. </p>
<p>Make sure to check <a class="el" href="class_ndef_nfc_sp_record.html#a3462ff2d61482cb0de93f9b4f30cfb06" title="Returns if the action has been defined for this Smart Poster instance.">actionInUse()</a> before calling this method; if the Smart Poster doesn't have an action defined, this method will return the default NdefNfcSpRecord::DoAction. </p>

</div>
</div>
<a class="anchor" id="a3f37323f2725747944882bbe1b6fbe35"></a><!-- doxytag: member="NdefNfcSpRecord::addTitle" ref="a3f37323f2725747944882bbe1b6fbe35" args="(const QNdefNfcTextRecord &amp;newTitle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::addTitle </td>
          <td>(</td>
          <td class="paramtype">const QNdefNfcTextRecord &amp;&#160;</td>
          <td class="paramname"><em>newTitle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an (optional) title to the Smart Poster. </p>
<p>It is possible to add more than one title as each title text record can have a different language. The phone is then recommended to choose the text record with the language that makes most sense to the user.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newTitle</td><td>(additional) title to be stored in the Smart Poster. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a354051e0c994f2bf34f62f0c19b5fde1">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="abccf808747083503b1eb4865c065d7f3"></a><!-- doxytag: member="NdefNfcSpRecord::hasSpData" ref="abccf808747083503b1eb4865c065d7f3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool NdefNfcSpRecord::hasSpData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if this record contains data that requires a Smart Poster and could not be stored in a simple URI record. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the record contains one or more titles, an image, action, size or type information. It is false if the record only contains a URI. </dd></dl>

</div>
</div>
<a class="anchor" id="a0fe149f01879f5ebe0099536680d7747"></a><!-- doxytag: member="NdefNfcSpRecord::image" ref="a0fe149f01879f5ebe0099536680d7747" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_ndef_nfc_mime_image_record.html">NdefNfcMimeImageRecord</a> NdefNfcSpRecord::image </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the image stored in the Smart Poster. </p>
<p>Make sure to check <a class="el" href="class_ndef_nfc_sp_record.html#ae3831762bc44f29d91af269a3a7e3086" title="Returns if the Smart Poster contains an image.">imageInUse()</a> before calling this method; if the Smart Poster doesn't contain an image, this method will return an empty image record. </p>

</div>
</div>
<a class="anchor" id="a4630690853edf75dfd49752c844d5c89"></a><!-- doxytag: member="NdefNfcSpRecord::mimeType" ref="a4630690853edf75dfd49752c844d5c89" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString NdefNfcSpRecord::mimeType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the type defined for this Smart Poster. </p>
<p>Make sure to check typeInUse() before calling this method; if the Smart Poster doesn't have a type defined, this method will return 0. </p>

</div>
</div>
<a class="anchor" id="a12464950d7a028bf6a906e2a12598673"></a><!-- doxytag: member="NdefNfcSpRecord::rawContents" ref="a12464950d7a028bf6a906e2a12598673" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString NdefNfcSpRecord::rawContents </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the contents of the text record as a string. To be used for debug purposes. </p>
<p>Also does an output of the contents to qDebug(). </p>

</div>
</div>
<a class="anchor" id="a2a240b64df374e41a518ac5b7b38f625"></a><!-- doxytag: member="NdefNfcSpRecord::setAction" ref="a2a240b64df374e41a518ac5b7b38f625" args="(const NfcAction &amp;action)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setAction </td>
          <td>(</td>
          <td class="paramtype">const NfcAction &amp;&#160;</td>
          <td class="paramname"><em>action</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the action of the Smart Poster to the specified value. </p>
<p>After this method has been called, <a class="el" href="class_ndef_nfc_sp_record.html#a3462ff2d61482cb0de93f9b4f30cfb06" title="Returns if the action has been defined for this Smart Poster instance.">actionInUse()</a> will return true. (As it will do when a Smart Poster containing an action has been read and parsed from a tag). </p>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a3845d35ebfe4e7e34e29fc98d0808166">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="a40961e308de55a66b96cfea7b12aa807"></a><!-- doxytag: member="NdefNfcSpRecord::setImage" ref="a40961e308de55a66b96cfea7b12aa807" args="(const NdefNfcMimeImageRecord &amp;imageRecord)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_ndef_nfc_mime_image_record.html">NdefNfcMimeImageRecord</a> &amp;&#160;</td>
          <td class="paramname"><em>imageRecord</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add an image to the Smart Poster. </p>
<p>After this method has been called, <a class="el" href="class_ndef_nfc_sp_record.html#ae3831762bc44f29d91af269a3a7e3086" title="Returns if the Smart Poster contains an image.">imageInUse()</a> will return true. (As it will do when a Smart Poster containing an image has been read and parsed from a tag). </p>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a1026e55340dffc94be5b5dcf8f2b4391">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="ada9950758e8b3147dbfdce3018580f4e"></a><!-- doxytag: member="NdefNfcSpRecord::setMimeType" ref="ada9950758e8b3147dbfdce3018580f4e" args="(const QString &amp;mimeType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setMimeType </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the type of the Smart Poster to the specified value. </p>
<p>After this method has been called, typeInUse() will return true. (As it will do when a Smart Poster containing a type has been read and parsed from a tag). </p>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#ae91a9371a13f618e0ca14746cd5dfb62">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="a8b69f976a64c678b153f65196fa3d909"></a><!-- doxytag: member="NdefNfcSpRecord::setSize" ref="a8b69f976a64c678b153f65196fa3d909" args="(const quint32 size)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setSize </td>
          <td>(</td>
          <td class="paramtype">const quint32&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the size of the Smart Poster to the specified value. </p>
<p>After this method has been called, <a class="el" href="class_ndef_nfc_sp_record.html#a65305e3fb21f42410d984b2e6055ffeb" title="Returns if the size has been defined for this Smart Poster instance.">sizeInUse()</a> will return true. (As it will do when a Smart Poster containing a size has been read and parsed from a tag). </p>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a36f7c8e7a374e59c1c96fdbd628fbfca">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="a0553ad691be3cd4fc8a504388df52ef8"></a><!-- doxytag: member="NdefNfcSpRecord::setTitleList" ref="a0553ad691be3cd4fc8a504388df52ef8" args="(QList&lt; QNdefNfcTextRecord &gt; newTitleList)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setTitleList </td>
          <td>(</td>
          <td class="paramtype">QList&lt; QNdefNfcTextRecord &gt;&#160;</td>
          <td class="paramname"><em>newTitleList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set all the titles of the Smart Poster. </p>
<p>This replaces any titles that might have been stored in the Smart Poster with the new list.</p>
<p>It is possible to add more than one title as each title text record can have a different language. The phone is then recommended to choose the text record with the language that makes most sense to the user.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newTitleList</td><td>titles to be stored in the Smart Poster. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a113e57ff10073ee7c9378ff869afe9ea">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="af2587902e2c7a802836ed4f54e8f87b9"></a><!-- doxytag: member="NdefNfcSpRecord::setUri" ref="af2587902e2c7a802836ed4f54e8f87b9" args="(const QUrl &amp;uri)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setUri </td>
          <td>(</td>
          <td class="paramtype">const QUrl &amp;&#160;</td>
          <td class="paramname"><em>newUri</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the mandatory URI of the Smart Poster. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newUri</td><td>Uri to be stored in the Smart Poster, passed as a QUrl for convenience. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#ad1ffcc7fe4263cf8ba6925f3febd6617">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="a188a11148db7221962b1cae38b0bddcd"></a><!-- doxytag: member="NdefNfcSpRecord::setUri" ref="a188a11148db7221962b1cae38b0bddcd" args="(const QNdefNfcUriRecord &amp;newUri)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NdefNfcSpRecord::setUri </td>
          <td>(</td>
          <td class="paramtype">const QNdefNfcUriRecord &amp;&#160;</td>
          <td class="paramname"><em>newUri</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the mandatory URI of the Smart Poster. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">newUri</td><td>Uri record to be stored in the Smart Poster. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_ndef_nfc_smart_uri_record.html#a37915e5d89655439fc8faa613195e8eb">NdefNfcSmartUriRecord</a>.</p>

</div>
</div>
<a class="anchor" id="a9c1ea51b4446a461409ed874be293ad9"></a><!-- doxytag: member="NdefNfcSpRecord::size" ref="a9c1ea51b4446a461409ed874be293ad9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint32 NdefNfcSpRecord::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the size defined for this Smart Poster. </p>
<p>Make sure to check <a class="el" href="class_ndef_nfc_sp_record.html#a65305e3fb21f42410d984b2e6055ffeb" title="Returns if the size has been defined for this Smart Poster instance.">sizeInUse()</a> before calling this method; if the Smart Poster doesn't have a size defined, this method will return 0. </p>

</div>
</div>
<a class="anchor" id="af785ae37b3c45b7666899096802525e6"></a><!-- doxytag: member="NdefNfcSpRecord::title" ref="af785ae37b3c45b7666899096802525e6" args="(const int index) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QNdefNfcTextRecord NdefNfcSpRecord::title </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieve a specific title text record from the list. </p>
<p>Returns an empty record in case the index is invalid. </p>

</div>
</div>
<a class="anchor" id="ac38f55eae5cfe6f25a8ef06f663517c2"></a><!-- doxytag: member="NdefNfcSpRecord::uri" ref="ac38f55eae5cfe6f25a8ef06f663517c2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QUrl NdefNfcSpRecord::uri </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the URI stored in this Smart Poster, converted to a QUrl for convenience. </p>
<p>If no URI has been set in the smart poster, an empty QUri is returned. </p>

</div>
</div>
<a class="anchor" id="af9487f5c8421ef960bf968d28014eee2"></a><!-- doxytag: member="NdefNfcSpRecord::uriRecord" ref="af9487f5c8421ef960bf968d28014eee2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QNdefNfcUriRecord NdefNfcSpRecord::uriRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the URI record stored in this Smart Poster. </p>
<p>If no URI has been set in the smart poster, an empty record is returned. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="ndefnfcsprecord_8h_source.html">ndefnfcsprecord.h</a></li>
<li>ndefnfcsprecord.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:49 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
